package com.ze.serviceImpl;

import com.ze.dao.UserDao;
import com.ze.model.User;
import com.ze.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service("userServiceImpl")
public class UserServiceImpl implements UserService {

    @Resource(name = "userDaoImpl")
    private UserDao userDao;

    @Override
    public boolean valid(User user) {
        return userDao.check(user);
    }
}
